﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;

namespace Douglas.Controllers
{
    [ApiController]
    [Route("api/[controller]/[action]")]
    public class TestController : ControllerBase
    {
        /// <summary>
        /// HelloWord
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public ActionResult<string> HelloWord()
        {
            return "Hello World!";
        }
        [HttpGet, AllowAnonymousAttribute]
        public Object Login(string account, string password)
        {
            throw new Exception("去掉");
            return  new
            {
                User_Id = "Helloe",
                Log_Code = "word",
            };
            return "Hello World!" + account;
            return "Hello World!" + account;
        }
    }
}
